package com.sporadic.backstage.service.serviceImpl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sporadic.backstage.entity.DishesCombo;
import com.sporadic.backstage.mapper.DishesComboMapper;
import com.sporadic.backstage.service.DishesComboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DishesComboServiceImpl implements DishesComboService {

    @Autowired
    private DishesComboMapper DishesComboMapper;


    @Override
    public IPage<DishesCombo> queryDishesCombo(Page page, Map map) {
        return DishesComboMapper.queryDishesCombo(page,map);
    }

    @Override
    public int insertDishesCombo(DishesCombo DishesCombo) {
        return DishesComboMapper.insertDishesCombo(DishesCombo);
    }

    @Override
    public int delDishesCombo(List list) {
        return DishesComboMapper.delDishesCombo(list);
    }

    @Override
    public int modifyDishesComboStatus(List list) {
        return DishesComboMapper.modifyDishesComboStatus(list);
    }
}
